/*
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2025-07-28 21:14:58
 * @LastEditors: sueRimn
 * @LastEditTime: 2025-07-28 21:24:35
 */
#ifndef _BMI088_H
#define _BMI088_H

#define ACC_CHIP_ID         0X00
 
 
#define	ACC_PWR_CTRL        0X7D
#define	ACC_OFF             0X00
#define	ACC_ON              0X04
 
#define	ACC_PWR_CONF        0X7C
//
#define ACC_RESET           0X7E
#define RESET               0XB6
//
#define ACC_EN              0X7d
//
#define ACC_ACTIVATE        0x7c
//
#define ACC_RANG            0x41
//
#define ACC_CONF            0X40
 
 
 
 
//
#define GRY_GHIP_ID         0X00
//
#define GRY_RESET           0X14
#define RESET               0XB6
//
#define GRY_RANG            0XF
//
#define GRY_BW              0x10
 
 
//GRY Power mode
#define GRY_PM              0X11
#define NORMAL              0X00
#define SUSPEND             0X80
#define DEEP_SUSPEND        0X20
 
 
//GRY INT
#define GRY_INT             0x15
#define DATA_EN             0X80
#define FIFO_EN             0X40
 
 
#define INT3_DATA           0X01
#define INT3_FIFO           0X04
#define INT4_DATA           0X80
#define INT4_FIFO           0X20
#define INT3_INT4           0x18
 
#define INT3_INT4_MODE      0x16
#define INT3_PP             (0<<1)
#define INT3_OD             (1<<1)
#define INT3_Rising         (1<<0)
#define INT3_Falling        (0<<0)
#define INT4_PP             (0<<3)
#define INT4_OD             (1<<3)
#define INT4_Rising         (1<<2)
#define INT4_Falling        (0<<2)


uint8_t SPI_Trans_rece(uint8_t TX);
void SPI_Trans_rece_LEN(uint8_t *rx, uint8_t size) ;
void BMI088_acc_cs(uint8_t x) ;
void BMI088_gry_cs(uint8_t x) ;

#endif